//
//  QLToast.h
//  QLToast
//
//  Created by mac on 2024/11/28.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, QLToastType) {
    QLToastTypeNormal,      //普通吐司
    QLToastTypeInfo,        //信息吐司
    QLToastTypeSuccess,     //成功吐司
    QLToastTypeWarning,     //警告吐司
    QLToastTypeError,       //错误吐司
};

typedef NS_ENUM(NSInteger, QLToastPosition) {
    QLToastPositionBottom,    //加载在偏下位置
    QLToastPositionCenter,    //加载在正中间位置
    QLToastPositionTop,       //加载在偏上位置
};

NS_ASSUME_NONNULL_BEGIN

@interface QLToast : UIView

+ (void)makeToast:(NSString *)msg toView:(UIView *)view;
+ (void)makeToast:(NSString *)msg toastType:(QLToastType)toastType toView:(UIView *)view;
+ (void)makeToast:(NSString *)msg toastType:(QLToastType)toastType toastPosition:(QLToastPosition)toastPosition toView:(UIView *)view;
+ (void)makeToast:(NSString *)msg toastType:(QLToastType)toastType toastPosition:(QLToastPosition)toastPosition duration:(NSInteger)duration toView:(UIView *)view;

@end

NS_ASSUME_NONNULL_END
